package pers.sen.health.entity;

import java.io.Serializable;
import java.util.List;

/**
 * @author Jason
 * @version 1.0.0
 * @Description 分页结果封装对象
 */
public class PageResult implements Serializable {
    private static final long serialVersionUID = 5995651397265093405L;
    /**
     * 查询的总记录数
     */
    private Long total;

    /**
     * 查询结果
     */
    private List rows;

    public PageResult() {
    }

    public PageResult(Long total, List rows) {
        this.total = total;
        this.rows = rows;
    }

    public Long getTotal() {
        return total;
    }

    public void setTotal(Long total) {
        this.total = total;
    }

    public List getRows() {
        return rows;
    }

    public void setRows(List rows) {
        this.rows = rows;
    }

    @Override
    public String toString() {
        return "PageResult{" +
                "total=" + total +
                ", rows=" + rows +
                '}';
    }
}
